R = eval(input())
r = eval(input())
n = eval(input())
S = n * (3.14159 * ((R**2) - (r**2)))
print(f'{S:.2f}')